import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.model.PutObjectResult;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.system.domain.Drivecircuit;
import com.ruoyi.system.mapper.DrivecircuitMapper;
import com.ruoyi.system.service.impl.DrivecircuitServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@RunWith(SpringRunner.class)
@SpringBootTest
public class imgtext {
    @Autowired
    DrivecircuitServiceImpl drivecircuitMapper;
    @Test
    public void testUpload() {
        String startname  = "保定";
        String destinationname = "哈尔滨";
        Drivecircuit drivecircuit = new Drivecircuit();
        drivecircuit.setStartname(startname);
        drivecircuit.setDestinationname(destinationname);
        Map map = drivecircuitMapper.selectDrivecircuitList(drivecircuit);
        System.out.println(map.toString());
    }
}

